/**
 * @FileName Mediator.java
 * @Package com.designMode.mediator
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-5 下午5:03:30
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.mediator;

/**
 * @ClassName Mediator
 * @author 顾博君
 * @Date 2016-1-5 下午5:03:30
 * @Function 抽象中介者
 */
public abstract class Mediator {
	// 定义同事类
	private ConcreteColleague1 c1;
	private ConcreteColleague2 c2;

	// 注入同事类
	public ConcreteColleague1 getC1() {
		return c1;
	}

	public void setC1(ConcreteColleague1 c1) {
		this.c1 = c1;
	}

	public ConcreteColleague2 getC2() {
		return c2;
	}

	public void setC2(ConcreteColleague2 c2) {
		this.c2 = c2;
	}

	// 中介者模式的业务逻辑
	public abstract void doSomething1();

	public abstract void doSomething2();
}
